const router = require('koa-router')({
})

const pc = require('../controller/pageController');
const api = require('../controller/apiController');

router.get('/',pc.indexPage)
router.get('/master',pc.indexPage)
router.get('/server',pc.serverPage)
router.get('/snapshot',pc.snapshot)


router.get('/test',api.test)

router.get('/api/getNextData',api.getNextData)
router.get('/api/getServerNextData',api.getServerNextData)

router.get('/api/getDsById',api.getDsById)
router.get('/api/getSsById',api.getSsById)

router.get('/api/getIdRange',api.getIdRange)
router.get('/api/getSnapshotInit',api.getSnapshotInit)

module.exports = router
